<template>
  <div class="li-acc-click">
    <span>{{mType}}</span>
    <div class="income">
      <span class="account-num" :style="accStyle">{{account}}</span>
      <span class="right-img"></span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'li-acc-click',
  data(){
    return{
      accStyle:{color: this.account === '请选择' ? '#c2caca' : '#5e93c6'}
    }
  },
  props: {
    mType: {
      type: String,
      default:'收款账户',
      required: true
    },
    account: {
      type: String,
      default:'请选择',
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
body{
  padding:0 0;
  margin: 0 0;

}
.li-acc-click{
  background-color: white;
  height: 46px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-top: 1px #e3e3e4 solid;
  padding: 0 16px 0 16px;
  white-space: nowrap;
  overflow: hidden;
}

.span{
  font-size: 14px;
  color: #333;
}

.right-img {
  display: inline-block;
  margin: 0 -6px 0 0;
  background: url("../public/images/arrow2x.png") no-repeat;
  background-size: 12px 18px;
  width: 15px;
  height: 20px;
  margin-left: 8px;
}
.account-num{
  font-size: 14px;
  color: #c2caca;
  align-self: center;
}
</style>
